package com.zhaojindong.ioc.component.lifecycle.fourth;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * created by dean on 2018/8/20
 */

@Configuration
@ComponentScan
public class FourthConfig {

    @Bean(initMethod = "init2", destroyMethod = "destroy3")
    public TestBean testBean() {
        return new TestBean();
    }
}
